﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace TMS
{
    class ConfigLoad
    {
        string server;
        string userid;
        string password;
        string database;

        public ConfigLoad()
        {
            StreamReader tr = new StreamReader("config.txt");
            tr.ReadLine();
            server = tr.ReadLine();
            tr.ReadLine();
            userid = tr.ReadLine();
            tr.ReadLine();
            password = tr.ReadLine();
            tr.ReadLine();
            database = tr.ReadLine();
        }

        public string GetServer()
        {
            return this.server;
        }

        public string GetUserID()
        {
            return this.userid;
        }

        public string GetPassword()
        {
            return this.password;
        }

        public string GetDatabase()
        {
            return this.database;
        }
    }

   
}
